package com.itic.appbase.framework.type;

public enum TeamLevel {
	One("one","一级团队"),Two("two","二级团队"),My("my","自己 "),Uper("uper","上级");
	private String level;
	
	private String name;
	
	TeamLevel(String level,String name) {
		this.level = level;
		this.name = name;
	}
	public String getLevel() {
		return level;
	}

	public void setLevel(String level) {
		this.level = level;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	public static TeamLevel getTeamLevel(String level) {
		TeamLevel teamLevel = null;
		switch (level) {
		case "one":
			teamLevel = TeamLevel.One;
			break;
		case "two":
			teamLevel = TeamLevel.Two;
			break;
		case "my":
			teamLevel = TeamLevel.My;
			break;
		case "uper":
			teamLevel = TeamLevel.Uper;
			break;
			default:break;
		}
		return teamLevel;
	}
	
}
